import Layout from '@/layout'

export const adminRouter = [
  // 管理员
  {
    path: '/',
    redirect: '/user',
  },
  {
    path: '/user',
    component: Layout,
    children: [
      {
        path: '/user',
        component: () => import('@/views/administrators/user/user'),
        meta: { title: '用户管理', icon: '7' },
      },
    ]
  },
  {
    path: '/apply',
    component: Layout,
    is_admin_view: 0,
    children: [
      {
        path: '/apply',
        component: () => import('@/views/administrators/apply/apply.vue'),
        meta: { title: '申请管理', icon: '8' },
      },
    ]
  },

  {
    path: '/system',
    is_admin_view: 0,
    component: Layout,
    children: [
      {
        path: '/system',
        hidden: true,
        component: () => import('@/views/administrators/system/system.vue'),
        meta: { title: '系统管理', icon: '11' },
      },
    ]
  },
  {
    path: '/dataShow',
    component: Layout,
    children: [
      {
        path: '/dataShow',
        component: () => import('@/views/administrators/dataShow/dataShow.vue'),
        meta: { title: '数据统计', icon: '10' },
      },
      // {
      //   path: '/dataShow/newList',
      //   component: () => import('@/views/administrators/dataShow/newsList.vue'),
      //   meta: { title: '数据统计', icon: '10' },
      // },
    ]
  },
  {
    path: '/news',
    component: Layout,
    is_admin_view: 0,
    children: [
      {
        path: '/news',
        component: () => import('@/views/administrators/news/news.vue'),
        meta: { title: '信息中心', icon: '9' },
      },
    ]
  },
  {
    path: '/consulting',
    is_admin_view: 0,
    component: Layout,
    children: [
      {
        path: '/consulting',
        component: () => import('@/views/administrators/consulting/consulting.vue'),
        // meta: { title: '业务咨询',icon:'12'},
      },
    ]
  },
  {
    path: '/AdvancedSearch',
    component: () => import('@/views/public/AdvancedSearch'),
    meta: { title: '高级搜索', serve: false },
    hidden: true
  },
  {
    path: '/upPwd',
    is_admin: 1,
    component: () => import('@/views/public/upPwd'),
    meta: { title: '高级搜索', serve: false },
    hidden: true
  },
  {
    path: '/userCenter',
    component: () => import('@/views/public/userCenter'),
    meta: { title: '个人中心', serve: true },
    hidden: true
  },
  {
    path: '/IndustryReport',
    is_admin_view: 0,
    component: Layout,
    children: [
      {
        path: '/IndustryReport',
        component: () => import('@/views/administrators/IndustryReport/IndustryReport'),
        meta: { title: '行业报告', icon: '15' },
      },
    ],
  },

  {
    path: '/newsDetails',
    component: Layout,
    children: [
      {
        path: '/newsDetails',
        component: () => import('@/views/administrators/news/details.vue'),
        meta: { title: '消息详情' },
      },
    ],
    hidden: true
  },
  {
    path: '/dataShow/newList',
    component: Layout,
    children: [
      {
        path: '/dataShow/newList',
        component: () => import('@/views/administrators/dataShow/newsList.vue'),
        meta: { title: '数据统计' },
      },
    ],
    hidden: true
  },

  {
    path: '/web',
    is_admin_view: 0,
    component: Layout,
    children: [
      {
        path: '/web',
        component: () => import('@/views/administrators/web/index.vue'),
        meta: { title: '网站管理', icon: '12' },
      },
    ]
  },
  // 404 page must be placed at the end !!!
  { path: '*', redirect: '/404', hidden: true },
  // 管理员
  
]
